POV-Ray : Newsgroups : povray.general : Mapping images on to prisms : Re: Mapping images on to prisms Server Time
28 Jul 2024 10:21:10 EDT (-0400)
  Re: Mapping images on to prisms  
From: Ron Parker
Date: 28 Jan 1999 16:31:15
Message: <36b0d723.0@news.povray.org>
On Thu, 28 Jan 1999 13:17:42 -0800, Josh English <eng### [at] spiritonecom> wrote:
>Yes, this will happen. Image maps will move forever through the z axis, the
>once option only applies to the x-y plane. In order to place an image map on
>the other side, you need to make two objects with the same height and width
>but with half the depth, then on the second one place the second image but
>be sure to rotate it correctly or it will appear backwards.

You might also try some trickery with the radial pattern:

  #macro DoubleImage( front, back ) 
    radial
    pigment_map {
      [.5 front]
      [.5 back rotate 180*y]
    }
  #end
 
  #declare f=pigment{image_map{ sys "heads.bmp" once } translate -.5}
  #declare b=pigment{image_map{ sys "tails.bmp" once } translate -.5}
 
  #declare coin=cylinder {
    -.1*z,.1*z,1 
    texture{pigment {color rgb 1}} 
    texture {pigment {DoubleImage(f,b)}}
  }

If you look at the front (-z) side of this simple round coin, you'll see 
the heads image.  Look at the back (z) side and you see the tails image.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.